package com.webchat.pgc.repository.dao.mall;

import com.webchat.pgc.repository.entity.mall.MallCategory;
import com.webchat.pgc.repository.entity.mall.MallImage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface IMallImageDAO extends JpaRepository<MallImage, Long> {


    int deleteAllBySourceTypeAndSourceId(Integer sourceType, Long sourceId);


    List<MallImage> findAllBySourceTypeAndSourceIdOrderByMainImageDescSortAsc(Integer sourceType, Long sourceId);
}
